package com.zbec.mdrs.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zbec.framework.core.entity.IdEntity;
import com.zbec.mdrs.entity.report.ReportFileRel;
import com.zbec.mdrs.entity.report.ReportTask;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;



public class ReportFileVo implements Serializable {

    private Long id;
	private String fileName;
	private String fileUrl;
	private String fileType;
	private String reportMan;
	private Date reportDate;
    private String businessType;
    private Date businessMonth;

    private String businessTypeDesc;

    public ReportFileVo(Long id, String fileName, String fileUrl, String fileType, String reportMan, Date reportDate, String businessType, Date businessMonth) {
        this.id = id;
        this.fileName = fileName;
        this.fileUrl = fileUrl;
        this.fileType = fileType;
        this.reportMan = reportMan;
        this.reportDate = reportDate;
        this.businessType = businessType;
        this.businessMonth = businessMonth;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getBusinessType() {
        return businessType;
    }

    public void setBusinessType(String businessType) {
        this.businessType = businessType;
    }

    @DateTimeFormat(pattern="yyyy/MM")
    @JsonFormat(pattern="yyyy/MM",timezone = "GMT+8")
    public Date getBusinessMonth() {
        return businessMonth;
    }

    public void setBusinessMonth(Date businessMonth) {
        this.businessMonth = businessMonth;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public String getReportMan() {
        return reportMan;
    }

    public void setReportMan(String reportMan) {
        this.reportMan = reportMan;
    }

    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date getReportDate() {
        return reportDate;
    }

    public void setReportDate(Date reportDate) {
        this.reportDate = reportDate;
    }

    public String getBusinessTypeDesc() {
        return businessTypeDesc;
    }

    public void setBusinessTypeDesc(String businessTypeDesc) {
        this.businessTypeDesc = businessTypeDesc;
    }
}